﻿using AIY;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace PartyWorkSupervise.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class PeopleController : ControllerBase
    {
        private readonly Add db;
        public PeopleController(Add context)
        {
            db = context;
        }

        [HttpGet("People")]
        public object GetPe()
        {
            return db.People.ToList();
        }
        [HttpGet("People1")]
        public object GetPe1()
        {
            return db.People.Where(s => s.lable_empty).ToList();
        }
    }
}
